package com.travel.req;

import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.sql.Date;

public class TravelAddReq {

    @NotNull(message = "地区是必填内容")
    @NotBlank(message = "地区不能为空字符串")
    @Size(min = 2,max = 10)
    private String area;

    private Date time;

    private String felling;

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getFelling() {
        return felling;
    }

    public void setFelling(String felling) {
        this.felling = felling;
    }
}
